package cn.wildfire.chat.app.extendsion.classes;

import android.os.Parcel;

import androidx.annotation.NonNull;

/**
 * Create by HEKE, 2019/10/16 18:13
 * TODO 检测安全中心状态对象
 */
public class SecurityStatus extends GsonObject {

    public int checkBindMobile;
    public int checkBindWX;
    public int checkExistsEncrypted;
    public int checkExistsPassword;
    public String mobile;

    public SecurityStatus() {
    }

    protected SecurityStatus(Parcel in) {
        checkBindMobile = in.readInt();
        checkBindWX = in.readInt();
        checkExistsEncrypted = in.readInt();
        checkExistsPassword = in.readInt();
        mobile = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(checkBindMobile);
        dest.writeInt(checkBindWX);
        dest.writeInt(checkExistsEncrypted);
        dest.writeInt(checkExistsPassword);
        dest.writeString(mobile);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<SecurityStatus> CREATOR = new Creator<SecurityStatus>() {
        @Override
        public SecurityStatus createFromParcel(Parcel in) {
            return new SecurityStatus(in);
        }

        @Override
        public SecurityStatus[] newArray(int size) {
            return new SecurityStatus[size];
        }
    };

    public int getCheckBindMobile() {
        return checkBindMobile;
    }

    public void setCheckBindMobile(int checkBindMobile) {
        this.checkBindMobile = checkBindMobile;
    }

    public int getCheckBindWX() {
        return checkBindWX;
    }

    public void setCheckBindWX(int checkBindWX) {
        this.checkBindWX = checkBindWX;
    }

    public int getCheckExistsEncrypted() {
        return checkExistsEncrypted;
    }

    public void setCheckExistsEncrypted(int checkExistsEncrypted) {
        this.checkExistsEncrypted = checkExistsEncrypted;
    }

    public int getCheckExistsPassword() {
        return checkExistsPassword;
    }

    public void setCheckExistsPassword(int checkExistsPassword) {
        this.checkExistsPassword = checkExistsPassword;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    @NonNull
    @Override
    public String toString() {
        return toNormalJson();
    }

}
